[?php
 $tabs = sfContext::getInstance()->getRequest()->getParameter('tabs', null);
 $params_tabs = "";
 $div_update = "div_panel_contenido";
 if($tabs != null)
 { 
<?php if($this->getParameterValue('tabs', 0) == 0): ?>
      $div_update = "div_tab_<?php echo $this->getModuleName()?>";
<?php endif; ?>
   $params_tabs = "tabs=tabs";
 }
?]
<ul class="sf_admin_actions">
<?php $listActions = $this->getParameterValue('list.actions') ?>
<?php if (null !== $listActions): ?>
  <?php foreach ((array) $listActions as $actionName => $params): ?>
    <?php echo $this->addCredentialCondition($this->getButtonToActionAjax($actionName, $params, false), $params) ?>
  <?php endforeach; ?>
<?php else: ?>
  <?php echo $this->getButtonToActionAjax('_create', array('name'=>'Nuevo'), false) ?>
<?php endif; ?>
<li>
[?php 
    if(SF_ENVIRONMENT == 'dev')
    {
    echo  link_to_remote('Crear datos', array(
               'update' => 'div_error',
               'url'    => '<?php echo $this->getModuleName() ?>/crearDatosAleatorios',
             )); 
    }         
?]
</li>
             
</ul>
